//获取
export function getStorage(key){	
	return new Promise((resolve,reject)=>{
		uni.getStorage({
		    key: key,
		    success: function (data) {
				resolve(data)
		    },
			fail: function (){
				reject()
			}
		});
	})
}

//存储
export function setStorage(key,data){	
	return new Promise((resolve,reject)=>{
		uni.setStorage({
		    key,
			data,
		    success: function (data) {
				resolve(data)
		    },
			fail: function (){
				reject()
			}
		});
	})
}